From 777eadb1151631b34197cf186598d7a60a04e7db Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 23 Feb 2015 16:16:17 -0800 Subject: [PATCH] Bump default timeout to 60s Closes #1333 --- src/cargo/ops/registry.rs | 2 +- src/doc/config.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/registry.rs b/src/cargo/ops/registry.rs index 7ef7fe354..d72ed78fd 100644 --- a/src/cargo/ops/registry.rs +++ b/src/cargo/ops/registry.rs @@ -161,7 +161,7 @@ pub fn registry(config: &Config, /// Create a new HTTP handle with appropriate global configuration for cargo. pub fn http_handle(config: &Config) -> CargoResult { - let handle = http::handle(); + let handle = http::handle().timeout(60); let handle = match try!(http_proxy(config)) { Some(proxy) => handle.proxy(proxy), None => handle, diff --git a/src/doc/config.md b/src/doc/config.md index 66a48789c..56913d878 100644 --- a/src/doc/config.md +++ b/src/doc/config.md @@ -73,7 +73,7 @@ token = "..." # Access token (found on the central repo's website) [http] proxy = "..." # HTTP proxy to use for HTTP requests (defaults to none) -timeout = 30000 # Timeout for each HTTP request, in milliseconds +timeout = 60000 # Timeout for each HTTP request, in milliseconds [build] jobs = 1 # number of jobs to run by default (default to # cpus) -- 2.30.2